﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Macad.Common;
using static SpCad.Servers.LodParametric;

namespace SpCad
{
    public class AppConfig
    {
        private static AppConfig _get;
        public static AppConfig Get=>_get?? (_get = new AppConfig());
        /// <summary>
        /// 设置要选择边框的宽度
        /// </summary>
        public int SelctEdgeWidth { get; set; } = 5;
        /// <summary>
        /// 工作台文件
        /// </summary>
        public string? WorkModelFile { get; set; }
        /// <summary>
        /// 基准面
        /// </summary>
        public List< DatumPlaneParametric>? datumPlane { get; set; }
        public int Precision { get => Maths.Precision; set => Maths.Precision = value; } 
        private AppConfig()
        {
            Maths.Precision = 2;
        }
    }
}
